import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/layout/routerView/index.vue';

const routes: RouteRecordRaw[] = [
  {
    path: 'shareManagement',
    name: 'shareManagement',
    component: RouterView,
    meta: {
      title: '共享管理',
      icon: 'icon-partake-full',
    },
    children: [
      {
        path: 'sampleSharing',
        name: 'sampleSharing',
        component: () => import('../pages/sample-sharing/sample-sharing.vue'),
        meta: {
          title: '样本共享',
        },
      },
      {
        path: 'sampleSharingOut',
        name: 'sampleSharingOut',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '@/modules/out_sample/pages/out_manage/index.vue'),
        meta: {
          title: '样本共享-出库',
          keepAlive: false,
          hideInMenu: true,
          activeMenu: 'sampleSharing',
        },
      },
      {
        path: 'shareCollections',
        name: 'shareCollections',
        component: () => import('../pages/share-collections/share-collections.vue'),
        meta: {
          title: '共享收藏',
        },
      },
      {
        path: 'approvalOrderRecords',
        name: 'approvalOrderRecords',
        component: () => import('../pages/approval-order-records/approval-order-records.vue'),
        meta: {
          title: '审批单记录',
        },
      },
    ],
  },
];

export default routes;
